﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Database;
//using IBE_Data;

namespace IBE
{
    public class Flight
    {
        //Airport Info
        tblGeoAirport _StartPointAirport = new tblGeoAirport();
        public tblGeoAirport StartPointAirport { get { return _StartPointAirport; } set { _StartPointAirport = value; } }

        tblGeoAirport _EndPointAirport = new tblGeoAirport();
        public tblGeoAirport EndPointAirport { get { return _EndPointAirport; } set { _EndPointAirport = value; } }

        //City Info
        tblGeoCity _StartPointCity = new tblGeoCity();
        public tblGeoCity StartPointCity { get { return _StartPointCity; } set { _StartPointCity = value; } }

        tblGeoCity _EndPointCity = new tblGeoCity();
        public tblGeoCity EndPointCity { get { return _EndPointCity; } set { _EndPointCity = value; } }

        //AirlineDetail
        tblAirline _AirlineDetail = new tblAirline();
        public tblAirline AirlineDetail { get { return _AirlineDetail; } set { _AirlineDetail = value; } }

        //Airlines Info
        string _AirlineLogo = "default.png";
        public string AirlineLogo { get { return _AirlineLogo; } set { _AirlineLogo = value; } }
        

        public DateTime StartTm { get; set; }
        public DateTime EndTm { get; set; }
        public TimeSpan Duration { get; set; }
        public List<AvailFlt> ListAvailFlt { get; set; }
        public int Index { get; set; }
        public int FareDataId { get; set; }
        public string Checked { get; set; }
        public int StopNum { get; set; }
        public string HasDownStop { get; set; }
        public bool NoRefund { get; set; }

        //Low cost
        public string SelectValue { get; set; }
        public string FlightInfo { get; set; }

        #region Method
        public Flight ShallowCopy()
        {
            return (Flight)this.MemberwiseClone();
        }

        #endregion
    }
}
